package com.share.controller;

import org.springframework.web.HttpRequestHandler;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @author sunxuejian
 * @date 2020/4/23
 */
public class C2_myController implements HttpRequestHandler {
    @Override
    public void handleRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {

        request.setAttribute("hello", "sunxj");
        request.getRequestDispatcher("/WEB-INF/jsps/index.jsp").forward(request, response);
    }
}
